package view2.utils;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.zhinongbao.R;
import com.example.zhinongbao.view.CaigouActivity;
import com.example.zhinongbao.view.ProductActivity;

public class maijiaActivity extends AppCompatActivity {
    private ImageView mImageView;
    private Button mButton1;
    private Button mButton2;

    private Button mButton3;
    private Button mButton4;
//    private LinearLayout mButton1;
//    private LinearLayout mButton2;
//    private LinearLayout mButton3;
//    private LinearLayout mButton4;


    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seller_home);
        mButton1=findViewById(R.id.MyProducts);
        mButton2=findViewById(R.id.OrderManagement);
        mButton3=findViewById(R.id.buttonNews);
        mButton4=findViewById(R.id.shopguanli);

mButton1=findViewById(R.id.MyProducts);
mButton1.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Intent intent = new Intent(maijiaActivity.this, ProductActivity.class);
        startActivity(intent);
    }
});
        mButton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(maijiaActivity.this, CaigouActivity.class);
                startActivity(intent);
            }
        });
        mButton3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //Intent intent = new Intent(maijiaActivity.this, XTActivityFragment.class);
                //startActivity(intent);
            }
        });
//        mButton4.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent = new Intent(maijiaActivity.this, XTActivityFragment.class);
//                startActivity(intent);
//            }
//        });
    }
}
